<?php
/**
 * Created by PhpStorm.
 * User: fuguang
 * Date: 2018/3/22
 * Time: 下午10:14
 */
use backend\models\NewsTagRela;
?>
<!DOCTYPE html>
<html lang="<?= Yii::$app->language ?>">
<head>
    <meta name="format-detection" content="telephone=no">
    <meta name="apple-mobile-web-app-status-bar-style" content="white">
    <meta name="apple-mobile-web-app-capable" content="no">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0">
    <title><?= $this->title ? Yii::$app->name."-".Html::encode($this->title) : Yii::$app->name; ?></title>

    <link rel="stylesheet" type="text/css" href="/js/lvdongfront/style.css" />
    <script src="/js/lvdongfront/zepto.min.js"></script>
    <script src="/js/lvdongfront/touch.js"></script>
</head>
<body id="viewbody">
<header class="header">
    <a href="#"><img src="/js/lvdongfront/images/logo.png" class="logo"/></a>
</header>
<div class="article-banner">
    <img src="" id="banner"/>
    <p><?= date("Y-m-d",strtotime($news->ptime))?></p>
</div>
<div class="wraper" id="article">
    <h1 id="view-title"></h1>
    <div class="article-user">
        <a href="javascript:void(0);">
            <img src="/js/lvdongfront/images/wx-code.jpg" alt=""/>
            <span id="authorname"></span>
        </a>
    </div>
    <div class="article-brief">
        <p id="summary"></p>
        <span class="line-lt"></span>
        <span class="line-rb"></span>
    </div>
    <div class="content" id="content"></div>
</div>
<!-- 版权说明 -->
<div class="wraper-gray article-copy">
    <p>本文首发于膜结构（微信公众号：BlockBeats）- 专注于区块链领域科技创业分析，提供最新鲜，最具深度，最有价值的区块链业新闻。转载请保留本信息，未包含本信息的转载将受到侵权投诉。</p>
    <p>如需联系膜结构或者作者，可以添加客服微信号blockbeats_cathy联系。</p>
</div>
<div class="wraper">
    <div class="article-tag"></div>
    <!-- 相关文章 -->
    <div class="article-recommend">
        <h3>相关文章</h3>
        <a class="recommend-item" href="javascript:void(0);"></a>
    </div>
    <!-- 相关文章 end -->
</div>
<!-- 二维码 -->
<div class="wraper-gray article-footer">
    <div>
        <img src="/js/lvdongfront/images/logo-v2.png" />
        <p>新鲜/深度/有价值</p>
    </div>
    <div>
        <p>扫描二维码关注膜结构</p>
        <img src="/js/lvdongfront/images/wx-code.jpg" />
    </div>
</div>
<!-- 二维码 end -->
<div class="thumbs-up">
    <a href="/">&lsaquo; 返回首页</a>
    <a href="javascript:void(0)" class="finger" id="up" data-type="article"><?= $news->up;?></a>
</div>
<div class="wxCode" id="wxCode" style="display:none">
    <img src="http://cms-bucket.nosdn.127.net/catchpic/8/8b/8b45c4d443618beaac5bc45a0c967105.jpg?imageView&amp;thumbnail=550x0">
</div>
<script>
    var title = parent.$("#newsnom-title").val();
    var image = parent.$("#newsnom-image").val();
    var summary = parent.$("#newsnom-summary").val();
    var tags = parent.$("#newsnom-tags").val();
    var authorname = parent.$("#newsnom-authorid").find("option:selected").text();
    var content = parent.$("#ueditor_0").contents().find("body").html();
    //alert(content);
    $("#view-title").html(title);
    $("#banner").attr("src",image);
    $("#summary").html(summary);
    $("#authorname").html(authorname);
    $("#content").html(content);

    var tagstr = tags.split(',');
    var tagshtml = "";
    $.each(tagstr, function(i,val){
        tagshtml = tagshtml + '<a href="javascript:void(0);">'+ val +'</a>';
    });

    $(".article-tag").html(tagshtml);
</script>
</body>
</html>
